package typeInfo;

import java.util.ArrayList;
import java.util.List;

class Fruit {

}
class Apple extends Fruit{}
class GreenApple extends Apple{}
public class sdf {

    public static void main(String[] args) {
        Fruit fruit = new Fruit();
        Apple apple = new Apple();
        GreenApple greenApple = new GreenApple();


    }

    public  static <T> void gsuper(List<? super T> list, T item) {
        list.add(item);
    }


}
